//
//  LeftTableViewCell.m
//  HuaLang
//
//  Created by iking on 2017/12/21.
//  Copyright © 2017年 iking. All rights reserved.
//

#import "LeftTableViewCell.h"

@implementation LeftTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self setUpUI];
    }
    return self;
}
- (void)setUpUI
{
    self.backgroundColor = UIColorFromRGB(0xececec);
    
    self.leftSegmentV = [[UIView alloc] init];
    self.leftSegmentV.backgroundColor = kClearColor;
    [self addSubview:self.leftSegmentV];
    [self .leftSegmentV mas_makeConstraints:^(MASConstraintMaker *make) {
        make.size.mas_offset(CGSizeMake(rateWidth(8), rateHeight(45)));
        make.centerY.equalTo(self);
        make.left.equalTo(self);
    }];
    
    self.textLB = [UILabel labelWithText:@"" textColor:UIColorFromRGB(0x6d6d6d) fontSize:13];
    [self.textLB sizeToFit];
    _textLB.numberOfLines = 0;
    [self addSubview:_textLB];
    [_textLB mas_makeConstraints:^(MASConstraintMaker *make) {
        make.center.equalTo(self);
        make.width.mas_lessThanOrEqualTo(@(rateWidth(180)));
    }];
    
    //    self.line = [[UIView alloc] init];
    //    _line.backgroundColor = UIColorWithRGB(230, 230, 230);
    //    [self addSubview:_line];
    //    [_line mas_makeConstraints:^(MASConstraintMaker *make) {
    //        make.left.right.bottom.equalTo(self);
    //        make.height.equalTo(@(0.5));
    //    }];
    
}

@end
